package com.example.demo.com.example.factory.factoryMethod;

public class Test {
    public static void main(String[] args) {
        IFactoryMethod f = new ZZMYCompanyFactory();
        System.out.println(f.createCompany().createTable());

        IFactoryMethod bjcF = new BJCCompamyFactory();
        System.out.println(bjcF.createCompany().createTable());
    }
}

